package com.telsoft.hms.function;

import java.util.List;

import com.telsoft.hms.data.HMS_Language_DATA;
import com.telsoft.hms.entity.ETT_Language;

/**
 * 
 * @author VIETPH
 *
 */
public class HMS_Language_FUNC {
	private final HMS_Language_DATA languageData;

	public HMS_Language_FUNC() {
		languageData = new HMS_Language_DATA();
	}

	public ETT_Language[] getListLanguage(String hospitalKey, int languageCode) throws Exception {
		List<ETT_Language> lLanguage = languageData
				.getListLanguage(hospitalKey, languageCode);
		return lLanguage.toArray(new ETT_Language[lLanguage.size()]);
	}
}
